import "amtf/css/rainbow.css"
import "@/css/amtf.scss"
import installQuasar from "amtf/install-quasar"
import installEL from "amtf/install-element-plus"

// import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from "@/router/index"
import "@/router/permission"
import { store } from "@/stores"
import auth from "@/directive/auth"

import svgIcon from "@/components/svgIcon/svgIcon.vue"
import a_page from "@/components/a_page.vue"
import a工具栏 from "@/components/a工具栏.vue"
import a页头固定栏 from "@/components/a页头固定栏.vue"
import a数组 from "@/components/a数组.vue"
import a看板 from "@/components/a看板/a看板.vue"
import IconSelect from "@/components/icon-select.vue"
import a单字段输入 from "@/components/a单字段输入.vue"
import a列表字段 from "@/components/a列表字段.vue"
import a表单字段 from "@/components/a表单字段.vue"
import AQInput from 'amtf/components/a-q-input.vue';


import themeSetup from "./theme.js"

import config from "./config"
export default {
    install: (app, cfg) => {
        // console.log(`cfg 👉`,cfg)
        app.use(router).use(installQuasar).use(installEL).use(store).use(auth)

        app.config.globalProperties.$a_config = config

        app.component("SvgIcon", svgIcon)
        app.component("a_page", a_page)
        app.component("a工具栏", a工具栏)
        app.component("a页头固定栏", a页头固定栏)
        app.component("a数组", a数组)
        app.component("a看板", a看板)
        app.component("IconSelect", IconSelect)
        app.component("a单字段输入", a单字段输入)
        app.component("a列表字段", a列表字段)
        app.component("a表单字段", a表单字段)
        app.component("AQInput", AQInput)

        themeSetup({ app })
    },
}
